
package cce;

import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;

import com.huaweicloud.saaslanding.install.SaaslandingInstallApplication;
import com.huaweicloud.saaslanding.install.applicationservice.CceService;
import com.huaweicloud.saaslanding.install.applicationservice.impl.RdsServiceImpl;

import jakarta.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * 功能描述
 *
 * @since 2022-03-21
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = SaaslandingInstallApplication.class, webEnvironment = RANDOM_PORT)
public class CceTest {
    @Resource
    private CceService cceService;

    @Resource
    RdsServiceImpl rdsService;

    @Test
    public void createNamespace() {
        cceService.createNamespace();
    }

    @Test
    public void createSecrets() {
        cceService.createSecrets();
    }

    @Test
    public void deleteNamespace() {
        cceService.deleteNamespace();
    }

    @Test
    public void saveShip() {
        rdsService.initComponentRelationship();
    }

}
